package com.codeczx.notificationdemo;

import android.app.NotificationManager;
import android.content.Context;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.app.NotificationCompat;
import android.util.Log;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        startService(new Intent(MainActivity.this,DownloadService.class));
    }

    @Override
    protected void onPause() {
        super.onPause();
        Log.i("codeczx"," MainActivity onPause");
    }

    @Override
    protected void onStop() {
        super.onStop();
        Log.i("codeczx"," MainActivity onStop");
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        Log.i("codeczx"," MainActivity onDestroy");
    }
}
